/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mapdigit.practices.compositeui.winforms.builderstrategies;

import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;
import com.mapdigit.practices.compositeui.eventbroker.EventInspector;

/**
 *
 * @author jshen
 */
public class CabModule extends AbstractModule{

    protected UIElementListener unElementListener;
    protected EventInspector eventInspector;
     
    public CabModule(UIElementListener unElementListener,EventInspector eventInspector){
        this.unElementListener=unElementListener;
        this.eventInspector=eventInspector;
    }
    
    @Override
    protected void configure() {
        bindListener(Matchers.any(), unElementListener);
        bindListener(Matchers.any(), eventInspector);
    }
    
}
